package hy.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/c3")
public class C3 {
    @GetMapping("/{id}/{username}")
    public String m1(@PathVariable Integer id,@PathVariable("username") String user){
        System.out.println(id);
        System.out.println(user);
        return "m1";
    }
    @GetMapping({"/m2","/p2"})
    public String m2(){
        return "m2";
    }
}
